package com.dongdongshop.util;

import java.io.Serializable;
import java.util.List;

public class Page<T> implements Serializable {

    private Integer PageNum;
    private Integer PageSize;
    private Long total;
    private Integer totalPage;
    private List<T> rows;

    @Override
    public String toString() {
        return "Page{" +
                "PageNum=" + PageNum +
                ", PageSize=" + PageSize +
                ", total=" + total +
                ", rows=" + rows +
                '}';
    }

    public Page() {
    }

    public Page(Integer pageNum, Integer pageSize, Long total, List<T> rows) {
        PageNum = pageNum;
        PageSize = pageSize;
        this.total = total;
        this.rows = rows;
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public Integer getPageNum() {
        return PageNum;
    }

    public void setPageNum(Integer pageNum) {
        PageNum = pageNum;
    }

    public Integer getPageSize() {
        return PageSize;
    }

    public void setPageSize(Integer pageSize) {
        PageSize = pageSize;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }

}